#ifndef MINI_ENGINE_MAIN
#define MINI_ENGINE_MAIN
#include <cstdlib>
#include "Application.h"
#include <iostream>
using namespace std;
using namespace mini_engine;
#include <string>
int main()
{
#ifdef NDEBUG
    // 这段代码只在NDEBUG被定义时（即非调试版本）被编译和执行
    printf("This is a non-debug version.\n");
#else
    // 这段代码只在NDEBUG未被定义时（即调试版本）被编译和执行
    printf("This is a debug version.\n");
    system("chcp 65001");
#endif
    Application app;
    try
    {
        app.run();
    }
    catch (const std::exception &e)
    {
        cerr << e.what() << endl;
        return EXIT_FAILURE;
    }
    return EXIT_SUCCESS;
}
#endif